<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script>
		
		sex = prompt("你是男的还是女的");
		age = prompt("你多大了");

		if(sex=='男'){
			if(age>20){
				document.write('大叔');
			}else{
				document.write('小伙子');
			}
		}else if(sex=="女"){
			if(age>20){
				document.write('大妈');
			}else{
				document.write('小姑娘');
			}
		}else{
			document.write("输入错误");
		}

	</script>
</head>
<body>
	
</body>
</html>